package com.closer.server.biz.submission.dto.vo;


import com.closer.server.biz.codebox.dto.JudgeInfo;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.core.handler.Fastjson2TypeHandler;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 提交记录VO
 */
@Data
public class SubmissionVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 3596324165207888092L;

    /**
     * 题目标题
     */
    private String title;

    /**
     * 提交用户ID
     */
    private Long userId;

    /**
     * 提交的代码
     */
    private String code;

    /**
     * 编程语言
     */
    private String language;

    /**
     * 提交状态
     */
    private String status;

    /**
     * 判题信息（json 对象）
     */
    @Column(typeHandler = Fastjson2TypeHandler.class)
    private JudgeInfo judgeInfo;

    /**
     * 提交时间
     */
    private LocalDateTime createTime;
}
